/**
 * @Author: 张宇
 * @Date: 2019/11/15
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019/08/27
 */
const RouteView = () => import('@/layout/RouteView');
// 异步路由组件加载
const AsyncComponent = __name__ => () => import(`@/pages/${__name__}`);

// 菜单路由
const menuRoutes = [
  {
    path: '/todoTask',
    meta: { title: '消息待办提醒', icon: 'el-icon-message' },
    redirect: '/todoTask',
    component: RouteView,
    children: [
      {
        path: '/todoTask/message/index',
        meta: { title: '消息提醒查看', keepAlive: true },
        component: AsyncComponent('cms-pages/todoTask/message/index')
      },
      {
        path: '/todoTask/todo/index',
        meta: { title: '待办提醒查看', keepAlive: true },
        component: AsyncComponent('cms-pages/todoTask/todo/index')
      }
     
    ]
  }
];

export default menuRoutes;
